package org.example.service;
import org.example.entity.User;

/**
 * @ClassName RedisService
 * @Author LZB
 * @Date 2022/11/19 13:14
 * @Version 1.0
 **/
public interface RedisService {
    public void setUser(String token, User user);
    public User getUser(String token);

    public void setToken(int userId,String token);
    public String getToken(int userId);

    void deleteToken(int userId);
}